
import React from 'react';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from './reducer/RoutReducer';
import App from './App';
//redux Connection routing

//Initialization Store
const store = createStore(rootReducer, applyMiddleware(thunk));

export default class Main extends React.Component {
  render() {
    return (
      <Provider store={store}>
        <App />
      </Provider>
    );
  }
}
